package com.zp.system.entity.bo;

import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 角色与已选择自定义服务对照业务对象
 *
 * @author zhang peng
 * @date 2022-12-14
 */

@Data
public class SysChooseRoleGroupBo {

    /**
     * 角色id
     */
    @NotBlank(message = "角色id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String roleId;

    /**
     * 选中自定义服务id
     */
    @NotBlank(message = "选中自定义服务id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String roleGroupId;

    /**
     * 选中自定义服务id数组
     */
    private String[] roleGroupIds;

}
